ShortPixel\Controller\Front\CDNController B

Total Complexity 98
Dependencies 6
Dependents 3
Total lines 786
Lines of code 456
Logical lines of code 281
Comment lines 107
Methods 26
Properties 5

Methods 26

Method Rating Maintainability Complexity Lines of code
createArguments()
A
46 16 35
processScript()
A
43 12 50
processFront()
A
43 7 54
purgeCDN()
A
48 7 32
loadCDNDomain()
S
52 6 27
extractImageMatches()
S
51 5 27
createReplacements()
S
52 4 24
getPurgeURL()
S
55 4 19
registerDomain()
S
51 3 28
flushItem()
S
53 3 23
checkJson()
S
64 4 10
checkScheme()
S
64 4 9
checkDomain()
S
59 3 14
addWPHooks()
S
64 3 9
pregReplaceContent()
S
60 2 12
fetchInlineBackground()
S
62 2 12
validateCDNDomain()
S
65 2 11
init()
S
59 1 15
checkContent()
S
69 2 7
__construct()
S
66 2 9
listenFlush()
S
74 1 4
fetchDocumentMatches()
S
91 1 2
pregReplaceByString()
S
66 1 8
stringReplaceContent()
S
72 1 5
fetchImageMatches()
S
72 1 5
getURLBase()
S
72 1 5